home *** CD-ROM | disk | FTP | other *** search
- unit Pdialog;
-
- interface
-
- uses WinTypes, WinProcs, Classes, Graphics, Forms, Controls, Buttons,
- StdCtrls,mapmain, ExtCtrls,sysutils;
-
- type
- TPointDlg = class(TForm)
- OKBtn: TBitBtn;
- CancelBtn: TBitBtn;
- HelpBtn: TBitBtn;
- Bevel1: TBevel;
- Lat: TEdit;
- Long: TEdit;
- Plabel: TEdit;
- Label1: TLabel;
- Label2: TLabel;
- Label3: TLabel;
- procedure OKBtnClick(Sender: TObject);
- procedure FormClose(Sender: TObject; var Action: TCloseAction);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- PointDlg: TPointDlg;
-
- implementation
-
- {$R *.DFM}
-
- procedure TPointDlg.OKBtnClick(Sender: TObject);
- begin
- Mapform.Worldmap1.SetCoordinates(lat.text,long.text,strtoint(plabel.text));
- end;
-
- procedure TPointDlg.FormClose(Sender: TObject; var Action: TCloseAction);
- begin
- Action := cafree;
- end;
-
- end.
-